﻿using PdfSharp.Pdf;
using PdfSharp.Drawing;

namespace iPdf
{
    class ImageWatermarker : Watermarker
    {
        private XImage WaterImage
        {
            get
            {
                return pageOption.Element as XImage;
            }
        }

        protected override XSize ElementSize
        {
            get
            {
                return this.WaterImage.Size;
            }
        }

        protected override void AddWatermark(XGraphics gfx)
        {
            gfx.DrawImage(this.WaterImage, 0, 0);
        } 

    }
}
